﻿#ifndef ADDFINANCESUBJECT_H
#define ADDFINANCESUBJECT_H

#include <QDialog>
#include "financeservice.h"

namespace Ui {
class AddFinanceSubject;
}

class AddFinanceSubject : public QDialog
{
    Q_OBJECT

public:
    explicit AddFinanceSubject(QWidget *parent = nullptr);
    ~AddFinanceSubject();

    void setDirectory(QList<QStringList> directory);

    void setCurrentDirectory(QString primaryDirectory, QString secondaryDirectory);

signals:
    void addFinanceItemSuccess();

private slots:
    void on_pushButtonCancel_clicked();

    void on_comboBoxPrimaryDirectory_currentIndexChanged(int index);

    void on_pushButtonAdd_clicked();

private:
    Ui::AddFinanceSubject *ui;
    FinanceService financeService;

    QList<QStringList> directory;
};

#endif // ADDFINANCESUBJECT_H
